package com.csr.csrcheck.service.impl;

import com.csr.csrcheck.mapper.Product_typeMapper;
import com.csr.csrcheck.pojo.Product_type;
import com.csr.csrcheck.service.Product_typeService;
import com.csr.csrcheck.service.ex.CompanyException;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Product_typeServiceImpl implements Product_typeService {
    @Resource
    private Product_typeMapper productTypeMapper;

    public List<Product_type> getlist() {
        List<Product_type> list = this.productTypeMapper.getlist();
        if (list == null)
            throw new CompanyException("");
        return list;
    }
}
